import { useState, useEffect } from "react";
export function useDefaultWidth() {
    const [d_width, setWidth] = useState(180);
    useEffect(() => {
        const clientWidth = document.body.clientWidth;
        if (clientWidth > 1680) {
            setWidth(220);
        }
        else {
            setWidth(150);
        }
    }, []);
    return d_width;
}
